#include <QCoreApplication>

#include "filescanner.h"
#include <support/mysql_helper.h>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    a.setApplicationName(SP_NAME);
    a.setApplicationVersion(SP_VERSION);
    if(!loadPriorityProfile(RES_CONFIG))
    {
        qDebug() << "ERROR: CAN NOT CONNECT DB !!!";
        return -1;
    }

    FileScanner scanner;
    scanner.prepareSources();

    return 0;
}
